-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export maven.repo.local for gradle tests #17643
Conversation
It seems really strange that we have to reach through in this way.. I wonder if we're dropping environment variables across the gradle invoke.
|
@ebullient I looked at the gradle code, environment variables are not used in the local repository path resolution: |
Properties gradleProperties = new Properties(); | ||
gradleProperties.put("systemProp.maven.repo.local", localMavenRepo); | ||
try (FileOutputStream os = new FileOutputStream(propertyFile)) { | ||
gradleProperties.store(os, "Gradle property file"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that you change the global Gradle configuration of the user. That won't fly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, only, if the maven.repo.local
system property is set. I can backup the user file and rollback to it after the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't fly.
+1! I have proxy settings in that file and I certainly don't expect Quarkus to modify it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it was definetely too aggressive. I reverted that part as it was not necessary.
Is there really no other way to pass the repo? E.g. via |
right, there is already a special case for tests. I will try to set something there. |
88f63a9
to
cf4032e
Compare
Actually I misread the error in the github report. Gradle tests are OK with the |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building cf4032e
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 devtools/cli✖ ✖ ✖ ⚙️ JVM Tests - JDK 11 Windows #📦 devtools/cli✖ ✖ ✖ |
cf4032e
to
33bab86
Compare
Thanks! |
This generate a
gradle.properties
file inuser.home/.gradle
.This file contains a system property which will then be used by gradle.
It should fix gradle tests in the release job.